/**
 * Universidad del Valle de Guatemala
 * Algoritmos y Bases de Datos
 * @author Rodrigo Mejia 11111
*/

import static org.junit.Assert.*;

import org.junit.Test;


public class StackVectorTest {

	
	@Test
	public void testPush() {
		StackVector<Integer> test = new StackVector<Integer>();
		test.push(2);
		assertEquals(2,test.peek(),0);
	}

	@Test
	public void testPop() {
		StackVector<Integer> test = new StackVector<Integer>();
		test.push(3);
		assertEquals(3,test.pop(),0);
	}

	@Test
	public void testPeek() {
		StackVector<Integer> test = new StackVector<Integer>();
		test.push(4);
		assertEquals(4,test.peek(),0);
	}

	@Test
	public void testEmpty() {
		StackVector<Integer> test = new StackVector<Integer>();
		assertEquals(true,test.empty());
	}

	@Test
	public void testSize() {
		StackVector<Integer> test = new StackVector<Integer>();
		test.push(4);
		test.push(3);
		test.push(5);
		assertEquals(3,test.size(),0);
	}

}
